package com.xunbao.thread.util;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

/**
 * Created with IntelliJ IDEA.
 * ClassName:BulidFutureTask
 * Description:
 * Author:yijiawei
 * Date: 2016/5/31 9:44
 */
public class BuildFutureTask extends FutureTask {

    public BuildFutureTask(Callable callable) {
        super(callable);
    }

    @Override
    protected void done() {
        //TODO 在建立返回值和改变任务的状态为isDone状态后，该方法会被调用
        System.out.println("BulidFutureTask - done");
    }
}
